package com.maimao.model.user.sys.vo;

import com.fasterxml.jackson.annotation.JsonInclude;
import lombok.*;

import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.List;

/**
 * 后台用户展示vo
 * @author MaoLin Wang
 * @date 2020/12/7 10:15 上午
 */
@Setter
@Getter
@Builder
@AllArgsConstructor
@NoArgsConstructor
@JsonInclude(JsonInclude.Include.NON_NULL)
public class SysUserVo implements Serializable {

    private static final long serialVersionUID = 7843055622168260041L;

    private Integer id;
    private String realName;
    /**
     * 部门名
     */
    private String departmentNames;
    /**
     * 部门id列表
     */
    private List<Integer> departmentIds;
    private List<Integer> roleIds;
    private String username;
    private String email;
    private Integer status;
    private LocalDateTime createTime;


    @Override
    public String toString() {
        return "SysUserVo{" +
                "id=" + id +
                ", realName='" + realName + '\'' +
                ", departmentNames='" + departmentNames + '\'' +
                ", departmentIds=" + departmentIds +
                ", roleIds=" + roleIds +
                ", username='" + username + '\'' +
                ", email='" + email + '\'' +
                ", status=" + status +
                ", createTime=" + createTime +
                '}';
    }
}
